using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PoolBuff : Bullet
{
    public enum PoolBuffBullet
    {
        confidence,hello
    }
    public PoolBuffBullet bulletName;
    protected override void DeathSkill()
    {
        base.DeathSkill();
        foreach (Bullet bullet in Magazine.instance.bulletPool)
        {
            if(bulletName == PoolBuffBullet.confidence)
            {
                if (bullet.skill.Common)
                {
                    bullet.P++;
                    bullet.Y++;
                }
            }
            else if (bulletName == PoolBuffBullet.hello)
            {
                print(1);
                if (bullet.Name == this.Name)
                {
                    print(2);
                    bullet.P++;
                    bullet.Y++;
                }
            }
        }
    }
}
